<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<?php
	if (isset($page['head-scripts'])) {
		foreach ($page['head-scripts'] as $script) {
			print "<script src=\"$script\"></script>\n";
		}
	}
	if (isset($page['head-css'])) {
		foreach ($page['head-css'] as $css) {
			print "<link type=\"text/css\" rel=\"stylesheet\" media=\"all\" href=\"{$css}\" />\n";
		}
	}
?>
<title><?php if (isset($page['title'])) { print $page['title']; } ?></title>
</head>
<body>
<link type="text/css" rel="stylesheet" media="all" href="<?php if (isset($page['themepath'])) { print $page['themepath']; } ?>/css/base.css" />
<link type="text/css" rel="stylesheet" media="all" href="<?php if (isset($page['themepath'])) { print $page['themepath']; } ?>/css/blue.css" />
  <div id="page"><div id="page-inner">
    <div id="header"><div id="header-inner" class="clear-block">
        <div id="logo-title">
<!--             <div id="logo"><a href="/" title="/" rel="home"><img src="" alt="/" id="logo-image" /></a></div> -->
		  <div id="site-name-slogan">
              <h1 id="site-name"><a href="<?php if (isset($page['baseurl'])) { print $page['baseurl']; } ?>" title="/" rel="home"><?php if (isset($page['sitename'])) { print $page['sitename']; } ?></a></h1>
<!--               <span id="site-slogan">slogan</span> -->
		  </div>
        </div> <!-- /#logo-title -->
        <div id="header-blocks">
        &nbsp;
        </div> <!-- /#header-blocks -->
    </div></div> <!-- /#header-inner, /#header -->
	<div id="main">
	  <div id="main-inner">
	    <div class="clear-block"> 
          <div id="content">
		    <div id="breadcrumb">
		    <?php if (isset($page['breadcrumb'])) {
		    		$c = count($page['breadcrumb']);
		    		$i = 0;
		    		foreach ($page['breadcrumb'] as $item) {
		    			if ($item['link'] == null) {
		    				print($item['label']);
		    			} else {
		    				print("<a href='".$item['link']."'>".$item['label']."</a>");
		    			}
		    			if ($i < $c-1) {
		    				print " >> ";
		    			}
		    			$i++;
		    		}
		    	} ?>
		    </div>
            <div id="content-inner">
            	<div id="content-left"><?php print $page['html-title']; ?><?php print $page['local-tasks-html']; ?></div>
            	<div id="content-right"><?php if (isset($page['body'])) { print $page['body']; } ?></div>    
              <div class='clearboth'></div>
            </div> <!-- /#content-inner -->	
          </div> <!-- /#content -->
	    </div>
	  </div>
	</div><!-- /#main-inner, /#main --> 
  </div></div> <!-- /#page-inner, /#page -->
</html>
